#pragma once
#include "stdafx.h"
#include <UIRibbon.h>
#include <string>
using namespace std;

MIDL_INTERFACE("722b7d91-b3ae-45e4-95ec-033ebbe8222d")
    IComboBoxTextItem : public IUnknown
    {
    public:
		virtual HRESULT STDMETHODCALLTYPE Initialize(PCWSTR text); 
    };

class CComboBoxTextItem : public CComObjectRootEx<CComMultiThreadModel>, public IUISimplePropertySet, public IComboBoxTextItem
{
private:
	wstring m_text;

public:
	BEGIN_COM_MAP(CComboBoxTextItem)
        COM_INTERFACE_ENTRY(IUISimplePropertySet)
		COM_INTERFACE_ENTRY(IComboBoxTextItem)
    END_COM_MAP()

	STDMETHOD(GetValue)(__in REFPROPERTYKEY key, __out PROPVARIANT *ppropvar);
	STDMETHOD(Initialize)(PCWSTR text); 

	CComboBoxTextItem(void);
	virtual ~CComboBoxTextItem(void);
};

